<template>
  <div id="app">
    <transition >
      <router-view :key="key"/>
    </transition>
  </div>
</template>

<script>
export default {
  name: 'app',
  computed: {
    key () {
      return this.$route.name !== undefined ? this.$route.name + new Date() : this.$route + new Date()
    }
  }
}
</script>

<style lang="scss">
@import '@/assets/styles/index.scss'; // 全局自定义的css样式
@import url('./assets/styles/base.css');
@import url('./assets/styles/stats.css');
</style>
